﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Kairos.Models
{
    public class Document : DocumentBase
    {
        [Required]
        public string Contenu { get; set; }

        [ForeignKey("MetaData_1")]
        public int MetaData_1ID { get; set; }

        [ForeignKey("MetaData_2")]
        public int MetaData_2ID { get; set; }

        // Navigation properties 
        [Display(Name = "Type de document")]
        public virtual MetaData1 MetaData_1 { get; set; }
        [Display(Name = "Logiciel associé")]
        public virtual MetaData2 MetaData_2 { get; set; }
    }
}